using imitateMacQQ.WebApi.Domain.RealTime.Interface;
using imitateMacQQ.WebApi.Domain.Request.utils;
using Microsoft.AspNetCore.Mvc;

namespace imitateMacQQ.WebApi.Api;

[ApiController]
[Route("api/[controller]/[action]")]
public class MessagerController : ControllerBase
{
    private readonly IMessager _messager;

    public MessagerController(IMessager messager)
    {
        _messager = messager;
    }

    [HttpGet]
    public async Task<Request<bool>> GetMessager(string account, string inc)
    {
        return await _messager.RealTimeMessager(account, inc);
    }
}